package com.wnxy.mallserver.service.impl;

import com.wnxy.mallserver.entity.OrderItem;
import com.wnxy.mallserver.mapper.OrderItemMapper;
import com.wnxy.mallserver.service.OrderItemService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OrderItemServiceImpl implements OrderItemService {
    @Resource
    private OrderItemMapper orderItemMapper;

    @Transactional
    @Override
    public boolean addOrderItem(List<OrderItem> orderItems) {
        return orderItemMapper.addOrderItem(orderItems);
    }

    @Override
    public List<OrderItem> findByOid(int oid) {
        return orderItemMapper.findByOid(oid);
    }
}





























